<?php
/**
 * Created by novebeta.
 * Date: 12/4/12
 * Time: 10:01 PM
 */
Yii::import('ext.portlet.XPortlet');
class pertanyaan extends XPortlet
{
    //public $galeri = array();
    protected function renderContent()
    { 
       /*pertanyaan*/ 
       $criteria=new CDbCriteria();
       $criteria->addCondition('status="1"');
       $criteria->order='id desc'; 
       $criteria->limit='1';    
	   $models_pertanyaan=Bukutamu::model()->findAll($criteria);       
       $this->render('pertanyaan',array(    
       'model_pertanyaan'=>$models_pertanyaan
        
		));
      
    }
}
